package com.ambow.dao;

import java.util.List;

import com.ambow.entity.Message;
import com.ambow.entity.News;
import com.ambow.entity.Product;
import com.ambow.entity.User;
import com.ambow.utils.PageResults;

public interface ManagerDao {
	public List<User> selectAllUser();
	public User queryOneUser(int id);
	public boolean delete_modifyUser(User user);
	public List<Product> selectAllProduct();
	public boolean delete_modifyProduct(Product pro);
	public Product queryOneProduct(int id);
	public List<Product> queryProduct(String hql,String[] param);
	public boolean  addProduct(Product pro);
	boolean delete_modifyUser();
	List<News> queryAllNews(String hql);
	boolean  addNews(News news);
	boolean updateStatus(News news);
	News queryOneNews(Integer id);
	boolean updateMessageStatus(Message message);
	Message queryOneMessage(Integer id);
	List<Message> queryAllMessage(String hql);
	public PageResults<User> getPageByFetchedHql(String hql, String countHql, int i, int j);

	
	
	
	
	
	
}
